package wechat.start.wechatstart.entity;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * Created by WuJiXian on 2020/12/4 22:36
 * 文本消息实体类
 */
@EqualsAndHashCode(callSuper = false)
@Data
@NoArgsConstructor
@XStreamAlias("xml")
public class TextMessage extends BaseMessage{

    @XStreamAlias("Content")
    private String content;


    public TextMessage(Map<String, String> requestMap, String content) {
        super(requestMap, "text");
        this.content = content;
    }

}
